﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace Pc_beep_sandbox_2010
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        static int freq;
        static int durate;
        private void button1_Click(object sender, EventArgs e)
        {
            freq = Convert.ToInt16(textBox1.Text);
            durate = Convert.ToInt16(textBox2.Text);
            Console.Beep(freq, durate);
        }




    }
}
